//
//  ZZExprMgr.h
//  ZZExprLib
//
//  Created by Layzhao on 2018/7/4.
//  Copyright © 2018年 Layzhao. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ZZExprMgr : NSObject

+ (instancetype)sharedManager;

//初始化时必填字段，否则无效
@property (nonatomic, strong) NSString *userId;
//更新实验配置信息，时机：启动APP时/登录成功时/后台推送
- (void)updateExprConfig;
//清除实验配置信息，时机：退出APP登录时
- (void)clearExprConfig;
//获取实验信息
- (NSString *)getExptWithFeatureCode:(NSString *)featureCode withValueKey:(NSString *)valueKey withStringDefault:(NSString *)defaultValue;
- (BOOL)getExptWithFeatureCode:(NSString *)featureCode withValueKey:(NSString *)valueKey withBoolDefault:(BOOL)defaultValue;

#if (defined DEBUG) || (defined ADHOC)
- (BOOL)saveDicCacheExprConfigItems;
- (NSMutableDictionary *)getAllExpt;
#else
- (NSDictionary *)getAllExpt;
#endif
@end
